package com.wildish.demo.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wildish.demo.dao.TestUserMapper;
import com.wildish.demo.ebo.TestUser;

@Service
public class TestUserService {

	@Resource
	private TestUserMapper userDao;
	
	public TestUser getUserById(int userId) {
		return userDao.selectByPrimaryKey(userId);
	}
	
	public TestUser getUserRoleById(int userId) {
		return userDao.selectWithRole(userId);
	}
}
